import request from '@/utils/request'

// 获取案例数据
export function getCaseData(data) {
    return request({
        url: '/ds/section/get_lungimg_case',
        method: 'post',
        data: data
    })
}

// 获取案例列表
export function getCaseList(data) {
    return request({
        url: '/ds/section/get_case',
        method: 'post',
        data: data
    })
}
//获取案例评论
export function getCaseComment(data) {
    return request({
        url: '/ds/section_comment/get_case',
        method: 'post',
        data: data
    })
}
//案例评论
export function setCaseComment(data) {
    return request({
        url: '/ds/section_comment/set_case',
        method: 'post',
        data: data
    })
}





// 影像资料上传
export function uploadCase(data) {
    return request({
        url: '/ds/section/upload_case',
        method: 'post',
        data: data
    })
}
// 建立影像资料
export function setImageCase(data) {
    return request({
        url: '/ds/section/set_image_case',
        method: 'post',
        data: data
    })
}
//获取影像资料
export function getImageCase(data) {
    return request({
        url: '/ds/section/get_image_case',
        method: 'post',
        data: data
    })
}
//影像资料评论列表
export function getImageComment(data) {
    return request({
        url: '/ds/section_comment/get_image_case',
        method: 'post',
        data: data
    })
}
//添加影像资料评论
export function setImageComment(data) {
    return request({
        url: '/ds/section_comment/set_image_case',
        method: 'post',
        data: data
    })
}

// 生命组学资料上传
export function uploadBiomicCase(data) {
    return request({
        url: '/ds/section/upload_case',
        method: 'post',
        data: data
    })
}
// 建立生命组学资料
export function setBiomicsCase(data) {
    return request({
        url: '/ds/section/set_biomics_case',
        method: 'post',
        data: data
    })
}
//获取生命组学资料
export function getBiomicsCase(data) {
    return request({
        url: '/ds/section/get_biomics_case',
        method: 'post',
        data: data
    })
}
//生命组学资料评论列表
export function getBiomicsComment(data) {
    return request({
        url: '/ds/section_comment/get_biomics_case',
        method: 'post',
        data: data
    })
}
//添加生命组学资料评论
export function setBiomicsComment(data) {
    return request({
        url: '/ds/section_comment/set_biomics_case',
        method: 'post',
        data: data
    })
}

// 软件架构资料上传
export function uploadSofewareCase(data) {
    return request({
        url: '/ds/section/upload_case',
        method: 'post',
        data: data
    })
}
// 建立软件架构资料
export function setSofewareCase(data) {
    return request({
        url: '/ds/section/set_software_case',
        method: 'post',
        data: data
    })
}
//获取软件架构资料
export function getSofewareCase(data) {
    return request({
        url: '/ds/section/get_software_case',
        method: 'post',
        data: data
    })
}
//软件架构资料评论列表
export function getSofewareComment(data) {
    return request({
        url: '/ds/section_comment/get_software_case',
        method: 'post',
        data: data
    })
}
//添加生命组学资料评论
export function setSofewareComment(data) {
    return request({
        url: '/ds/section_comment/set_software_case',
        method: 'post',
        data: data
    })
}

//评论点赞（取消赞）
export function setCommentLike(data) {
    return request({
        url: '/ds/section_comment/set_comment_like',
        method: 'post',
        data: data
    })
}


//⑮获取上传图片列表:ds.pushiyixue.com/ds/upload/upload_getimg?dsid='用户id'(图片路径:ds.pushiyixue.com/file/dsid/0.jpeg)
export function getDcmXulie(dsId, lungClassId) {
    return request({
        url: '/ds/section/get_lungimg_case',
        method: 'get',
        params: {
            dsId,
            lungClassId
        }
    })
}

//删除分享
export function delCase(data) {
    return request({
        url: '/ds/section/del_case',
        method: 'post',
        data: data
    })
}

//删除评论
export function delCaseComment(data) {
    return request({
        url: '/ds/section_comment/del_case',
        method: 'post',
        data: data
    })
}